package learn.up.java.basic;

public class InnerClassDemo {

	public class Inner {
		public void get() {
			System.out.println("good");
			InnerClassDemo.this.get();//访问外部类方法或属性
		}
	}
	
	void get() {
		System.out.println("very good");
	}
	public static void main(String[] args) {
		InnerClassDemo demo = new InnerClassDemo();
		Inner inner = demo.new Inner();//创建内部类对象
		inner.get();
	}
}
